#ifndef _U_BOOKSINFO_H_
#define _U_BOOKSINFO_H_
#include <QString>
#include <QImage>

class UBooksInfo {
public:
	UBooksInfo(const QString& isbn, const QString& title, const QString& author, const QString& press, const QString& date, const QString& image);	//构造函数
	UBooksInfo(const UBooksInfo& other)  
        : m_title(other.m_title), m_author(other.m_author), m_press(other.m_press), m_isbn(other.m_isbn), m_date(other.m_date), m_image(other.m_image) {}	//拷贝构造

	friend QDataStream& operator<<(QDataStream& out, const UBooksInfo& books);
	friend QDataStream& operator>>(QDataStream& in, UBooksInfo& books);
	void setTitle(const QString& m_title);
	void setAuthor(const QString& m_author);
	void setPress(const QString& m_press);
	void setIsbn(const QString& m_isbn);
	void setDate(const QString& m_date);
	void setImage(const QString& m_image);

	QString m_title; //书名，作者，出版社，ISBN，出版日期，图片
	QString m_author;
	QString m_press;
	QString m_isbn;
	QString m_date;
	QString  m_image;
};


#endif // !_U_BOOKSINFO_

